package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 学生课程表 Mapper 接口
 * </p>
 *
 * @author XinxuanZhuo
 * @since 2024-02-05
 */
public interface LearningLessonMapper extends BaseMapper<LearningLesson> {

    /**
     * 根据用户id 查询当前用户本周需要完成的课程小节数
     */
    Integer queryWeekPlanTotal(@Param("userId") Long userId);
}
